home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / IDLIncludes / DesktopAnimBase.idl < prev    next >
Text File  |  1996-05-01  |  2KB  |  75 lines

  1. /*
  2.      File:        DesktopAnimBase.idl
  3.  
  4.      Contains:    Declarations for common base class for DesktopAnimDraw and DesktopAnimPanel objects.
  5.  
  6.      Version:    Technology:    2/1/96    1/29/96    12/2/95    6/19/95    6/9/95    6/5/95 to Add* <6> <5> <4> <3> <2> <1>
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1995-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16. */
  17.  
  18.  
  19. #ifndef __DESKTOPANIMBASE_IDL__
  20. #define __DESKTOPANIMBASE_IDL__
  21.  
  22. #include <Collections.idl>
  23. #include <DesktopAnimation.idl>
  24. #include <Displays.idl>
  25. #include <MemAllocators.idl>
  26. #include <Types.idl>
  27.  
  28. #include <somcm.idl>
  29.  
  30. interface DesktopAnimBase : SOMObject
  31. {
  32.     /* initialization/destruction */
  33.     OSStatus     InitializeBase(in AVIDType prefsDisplayID, in DesktopAnimModuleDescRef moduleDescRef,
  34.                             in DesktopAnimModuleInfo moduleInfo);
  35.     OSStatus    CloseBase();
  36.  
  37.     /* Save/Restore state */
  38.     OSStatus    AddDesktopAnimCollectionItem(in CollectionTag tag, in UInt32 itemSize, in void* itemData);
  39.     OSStatus    GetDesktopAnimCollectionItem(in CollectionTag tag, inout UInt32 itemSize, in void* itemData);
  40.     OSStatus    GetDesktopAnimCollectionItemData(in CollectionTag tag, in MemAllocatorRef memAllocator, out UInt32 itemSize, out void* itemData);
  41.     OSStatus    RemoveDesktopAnimCollectionItem(in CollectionTag tag);
  42.     OSStatus    ReadDesktopAnimCollection();
  43.     OSStatus    WriteDesktopAnimCollection();
  44.  
  45.     /* Accessors */
  46.     OSStatus    GetModuleDescription(out DesktopAnimModuleDescRef moduleDescRef);
  47.  
  48. #ifdef __SOMIDL__
  49. implementation
  50.     {
  51.         passthru C_h =  "#include <Collections.h>"
  52.                         "#include <DesktopAnimation.h>"
  53.                         "#include <Displays.h>"
  54.                         "#include <MemAllocators.h>"
  55.                         "#include <Types.h>";
  56.  
  57.         passthru C_xh = "#include <Collections.h>"
  58.                         "#include <DesktopAnimation.h>"
  59.                         "#include <Displays.h>"
  60.                         "#include <MemAllocators.h>"
  61.                         "#include <Types.h>";
  62.         
  63.         
  64.         /* Release Order.  Note, only append to the end of this
  65.          * list, so that the base class is forward compatible. */
  66.         releaseorder:    InitializeBase, CloseBase, GetDesktopAnimCollectionItem,
  67.                         ReadDesktopAnimCollection, AddDesktopAnimCollectionItem,
  68.                         WriteDesktopAnimCollection, GetDesktopAnimCollectionItemData,
  69.                         RemoveDesktopAnimCollectionItem, GetModuleDescription;
  70.     };
  71. #endif
  72. };
  73.  
  74. #endif
  75.